﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using BingVis.SilverlightClient.Common;
using Microsoft.VirtualEarth.MapControl;

namespace BingVis.SilverlightClient
{
    public static class LocationExtensions
    {

        public static Location ToVirtualEarthLocation(this ILocation iloc)
        {
            return new Location(iloc.Latitude, iloc.Longitude, iloc.Altitude);
        }

        public static LocationBase ToLocationBase(this ILocation iloc)
        {
            return new LocationBase(iloc.Latitude, iloc.Longitude, iloc.Altitude);
        }
    }
}
